ST-editor reacts sluggishly.

Symptom: The ST-editor reacts sluggishly to actions – in particular when editing the ST-code by means of the content assist or refactoring.

Cause: The ST-editor contains nested →calls of →blocks. When the nesting depth increases, the ST-editor becomes slower.

Example
PROGRAM Program1
  VAR
    Var1 : INT;
  END_VAR
    
  Var1 := MOVE(MOVE(MOVE(MOVE(MOVE(MOVE(MOVE(MOVE(MOVE(MOVE(MOVE(2)))))))))));
END_PROGRAM

Solution:

  • Install version 1.28.0 (for Neuron Power Engineer).

  • If you are using a version < 1.28.0 (for Neuron Power Engineer): Avoid block calls with a high nesting depth. Declare and use auxiliary variables.